import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 分页查询-工资套餐类型
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}
// 分页查询-工资记录
export function gzList(params){
  return axios({
    url: assessCheckApi.gzList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}
// 导入工资套餐类型模板数据-表格Excel
export function importList(data){
  return axios({
    url: assessCheckApi.importList,
    method:'post' ,
    data:data,
    url_1:'outside',
    // responseType: 'arraybuffer'
  })
}
// 导出工资记录数据详情-Excel文件和Png文件的压缩包文件
export function exportList(params){
  return axios({
    url: assessCheckApi.exportList,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
// 工资记录详情-通过工资记录id查询
export function queryGzjlxqById(params){
  return axios({
    url: assessCheckApi.queryGzjlxqById,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}
// 删除工资记录-通过工资记录id
export function deleteGzjl(params){
  return axios({
    url: assessCheckApi.deleteGzjl,
    method:'delete' ,
    params:{...params},
    url_1:'outside',
  })
}
// 发送工资记录-确认状态-已确认
export function sendGzjlQrzt(data){
  return axios({
    url: assessCheckApi.sendGzjlQrzt,
    method:'post' ,
    data:{...data},
    url_1:'outside',
  })
}
// 下载Png图片文件-工资记录详情
export function downGzjlxqPngFile(params){
  return axios({
    url: assessCheckApi.downGzjlxqPngFile,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
// 下载excel文件-工资记录详情
export function downGzjlxqExcelFile(params){
  return axios({
    url: assessCheckApi.downGzjlxqExcelFile,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
// 下载导出工资套餐类型对应模板-通过工资套餐类型id
export function exportGztclxMb(params){
  return axios({
    url: assessCheckApi.exportGztclxMb,
    method:'get',
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

